package com.shass.mybatis.cxf.impl;

import java.util.Map;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.shass.mybatis.cxf.UserCxfService;
import com.shass.mybatis.service.UserService;

/**
 * endpointInterface 为接口包加类名
 * @author shass
 */
@WebService(serviceName="userCxfService",
targetNamespace = "http://cxf.mybatis.shass.com",
endpointInterface="com.shass.mybatis.cxf.UserCxfService")
@Component
public class UserCxfServiceImpl implements UserCxfService{

	@Autowired
	private UserService service ;
	
	@Override
	public String getUser(String username) {
		Map<String, Object> user = service.getUserByName(username);
		return user.get("FULLNAME")+"" ;
	}
	
}
